<!DOCTYPE html> 
<html lang="en"> 
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style>
body {
	margin: 10;
	font-size: 62.5%;
	line-height: 1.5;
}

.blue-button {
	background: #25A6E1;
	padding: 3px 20px;
	color: #fff;
	font-size: 10px;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 4px;
	border: 1px solid #1A87B9
}

table {
	width: 50%;
}

th {
	background: SteelBlue;
	color: white;
}

td, th {
	border: 1px solid gray;
	font-size: 12px;
	text-align: center;
	padding: 5px 10px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 200px;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-overflow: ellipsis;
}
</style>
</head>
<title>项目列表</title>
<script type="text/javascript">
function formReset() {
	document.getElementById("name").value = '';
}
</script>
<body>
	<center><form method="post" action="/">
		<table>
			<tr>
				<th style="text-align:left">项目搜索</th>
			</tr>
			<tr>
				<td>
				 关键字：
				 <input name="name" id="name" size="30" maxlength="30" value="${name}"/>
				 <input type="submit" class="blue-button" />
				 <input type="button" class="blue-button" value="清空" onclick="formReset()"/>
				</td>
			</tr>
		</table>
	</form>
	    <h3><font color="red"><#if name??>项目关键字：${name}  ，</#if>共 ${names?size} 条记录!</font></h3>
			<table>
				<tr>
				<th width="5">序号</th> 
				<th width="100">链接</th>
				<th width="100">说明</th>
			</tr>
			<#list names as it>
				<tr>
					<td>${it_index+1}</td> 
					<td style="text-align:left"><a href="/git/down?name=${it!}" title="点击下载 ${it!}">${it!}</a></td>
					<td><#if it?contains('/')><font color="red">2级子项目</font></#if></td>
				</tr>
			</#list>
		</table>
	</center>
</body>
</html>
